#
#
#



class Router:
    pass



class API:
    def __init__(self, mapper=None):
        self.mapper = mapper
        self._headers = []

    @classmethod
    def factory(cls, global_conf, **local_conf):
        return cls()

    def __call__(self, environ, start_response):
        self._headers.append(("Content-Type", "text/plain"))
        start_response("200 OK", self._headers)
        return ["test wsgi hello world\r\n"]


